<template>
  <div class="table">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="username" align="center" label="姓名" />
      <el-table-column prop="realname" align="center" label="电话" />
      <el-table-column prop="identity" align="center" label="身份证号" />
      <el-table-column prop="authTime" align="center" label="身份绑定时间" />
      <el-table-column prop="refereeName" align="center" label="上级姓名" />
      <el-table-column prop="referee" align="center" label="上级电话" />
      <el-table-column prop="refereeTime" align="center" label="绑定上级时间" />
      <el-table-column prop="refereeSourceValue" align="center" label="绑定来源" />
      <el-table-column prop="createdAt" align="center" label="注册时间" />
    </el-table>
  </div>
</template>
<script>
import abnormalTurnover from '@/api/abnormalTurnover/abnormalTurnover'
export default {
  data() {
    return {
      tableData: [{}]
    }
  },
  created() {
    this.detail()
  },
  methods: {
    detail() {
      abnormalTurnover.detail({ id: this.$route.query.id }).then(res => {
        if (res.data.code == 0) {
          console.log(res.data.data)
          this.tableData = res.data.data
        } else {
          this.$message.error(res.data.msg)
        }
      })
    }
  }
}
</script>
